set default encoding to UTF8
added support for cloudfront & proxy IPs