read source files using user defined encodeing, fix #496
Merge pull request #497 from livelazily/fix-for-issue-496

read source files using user-defined encoding, fix #496