Fixed issue #48 (Content-Type header with charset information resulted in an error)