fixed encoding issues by adding charset information to the header