fix getting charset from http header, incorrect usage of constructor for string
Merge pull request #5893 from FernetMenta/http

fix getting charset from http header, incorrect usage of constructor for...