Assume less about the format of the LOCALE. Fixes issue 3.