Rename xxx_to_char() -> to_char()

No functional change.