Handle non ascii payload in debugger protocol

Clean up of #359.

/to @3y3 please review
/cc @junecoder 

Close #214.