Bugfix for NumberFormatException in non-english locales