BUG Sanitise output, depending on output medium.
Merge pull request #16 from mateusz/sanitise-output

BUG Sanitise output.