Allow specification of file encoding

Specification of file encoding in parse() with an optional hash.