[UPDATE] Improved solution to accept foreign locales.