Fixes issue with replacing %DEFAULT_PORT%

Replaces the RDP default port when generating the HTTP response.