Added charset to head after checking validation