a fix to parse user's unicode input