#273: Changes from llonchj; Added tests to cover dots in pks in urls.