improve charset parsing performance
include charset in response header
include charset in response header