Fix two occasions that failed expandShortUrl:
1. no host name in the location header
2. short url is wrapped in parentheses rather than space