fix potential undisplayable key character in input