Fix locale related exchange rate problem

When the device is setup with locale that is using decimal comma (as
opposed to decimal point), the exchange rate functionality did not work.