Reformatted and added get_ucschar function.