improve character to_string