Fix charset and content-type problemns