Bug fix for non-english locales, fixes #5