Localization: fix convertToFraction() to work with locales that use "," as a decimal separator