Fix utf-8 enforcing hack.

The function getdefaultlocale takes one optional argument,
so the replace should behave the same.
Merge pull request #8 from toppoint/utf8-fix

Fix utf-8 enforcing hack.