3379820 Add backported UTF-8 encoding patch

Authored and Committed by amigadave 8 years ago
    Add backported UTF-8 encoding patch
    
    Fixes use of ducktype when the locale encoding is ascii, such as when
    building an RPM.