Use encoding in FileStream to decode file contents.

Fix for the issue described in #13.