Use file system encoding instead of always utf-8

This should fix #14, thanks to MrBovert for the patch.