Added propper locale parsing.