Character analogues of theorems of Ramanujan, Koshliakov and Guinand