clean up non printable characters