Do not output \x01/\x02 symbols for non-prompts in ipython

Should fix #664
Fix tests
Merge pull request #961 from ZyX-I/fix-664

Do not output \x01/\x02 symbols for non-prompts in ipython