fix invalid character display in linenoise