OF-593 LocaleUtils: convert dots to underscores

patch by Andrea Ratto