Fix get locale stuff

Ping #268