Add support for viewing R files.
Changed code to decode utf-8 content