Fixed locale url argument parsing and optimized empty URL argument
parsing