feat(MockSTDIN): allow encoding to be specified

This isn't as useful as I thought it would be, but woo features.

Closes #6
Closes #13