better locale parsing #44