Fix [ 3525847 ] UnicodeEncodeError with locale == C