Only trim leading characters not matching spec for first character

Change to use `trimLeadingFrom` to keep allowed characters in the rest of the hostname. 
OK, I misread the RFC, I think - you're right, it's ending with as well. My bad, will close this.