Add support for UTF-8 with BOM encoding

encode() does not support utf-8 with BOM. Some text editors save in it.
Merge pull request #56 from qrohlf/upstream

Add support for UTF-8 with BOM encoding
added 'outline:none;' to @media print
Merge pull request #58 from sauerbraten/master

Removes #FAFAFA outline when printing to paper/PDF
Merge remote-tracking branch 'upstream/master'