Double encodes shell returns to harden against arbitrary byte sequences

Fixes #21. As I said, It's a hacky solution, but let me know if it suits you.