Added case insenstive check of character set in the content type

Added case insenstive check of character set in the content type

as per http://tools.ietf.org/html/rfc2616#section-3.4

Specifically some servers specify the character set as UTF-8 and some can even mix the case.