Fixed some errors in UrlLocalization Scheme2 handling.