ghostutils: Abandon hostname conversion early if it’s too long
See the commit messages.
This is not a security issue as it only affects URIs which are >10KB long, and earlier code in the call tree should really catch those.
Edited by Philip Withnall