If the user specifies a text encoding via the "View Options" dropdown, respect this choice.
Interestingly I tried to open a simple README file and selecting UTF-8.
It said this nonsense message:
This document was converted from UTF-8 to UTF8 for display.
Is this a relevant corner case?
BTW apart from that, this seems very nice, thanks!