Fix heap corruption that could occur when HSTS feature is enabled
At least on Windows, when realloc() is used to allocate a new buffer, guess what's in that buffer initially? undefined values. So you can't strcat() onto the end of that! Ouch. This was a fun one to track down.