Be compatible with older Encode.pm

This fixes #3 by decoding after reading files instead of by using a PerlIO layer, which avoids the feature used from Encode 2.11.