remove non-printable characters from the input when using Maca