When opening a filehandle from a string, that string must contain bytes

The behavior for this changed in perl 5.17.x. See
https://rt.perl.org/rt3//Public/Bug/Display.html?id=109828 for a ridiculously
long discussion.

This change gets the tests passing on 5.16 and 5.17.