Add a test for domains with special names ('.' and '..') to make sure we encode paths correctly