Minor refactoring on PlainTextCompletionCommandHandler
Adding new tests for escape sequence parsers and fix bug with escaped backslash (Closes #48)