Add encoding info to HTML header. Fix #492

This fixes an encoding problem when plotting from the REPL.