Fix OS X locale issue

Closes #22