ascii_convert function for Carlos