Remove high byte characters to avoid locale errors