Handle non ascii payload in debugger protocol

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