Html5 charset and discard unnecessary type attributes