Parse and pass out charset to browser