fix UnicodeEncode error when using pause module with unicode prompt.