rjbs/module-faker — pull request #4 by rwstauner (2012-09-04 01:17:24+00:00)
Title: Translate file appendices to octets before passing to Archive::Tar

After fighting with it all weekend I found that [a metacpan test](https://github.com/CPAN-API/cpan-api/issues/230) was failing on perls 5.14+

A module was being faked from a json file with a utf8 char.

According to `/bin/gzip` the tar being written by `CPAN::Faker` was corrupt:

gzip: t/var/tmp/fakecpan/authors/id/D/DO/DOY/Moose-0.01.tar.gz: invalid compressed data--length error

even though Archive::Tar does not seem to have a problem with it.

It took me a while to come up with it but I think the test case in this pull req makes sense.

However, I wholly admit that I know very little on the subject of encodings
(nor what changed between 5.12 an 5.14)
so I appeal to your expertise to determine the validity of this issue and it's resolution.