Bug 6988 - unable to work in locale with utf8 charmap

Summary: unable to work in locale with utf8 charmap