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

see title
I am wondering how often we have this error in the current code. CStdStr needed first, last but std::string len.

@notspiff any thoughts on this?