Added locale parsing to NewParser.