Added escape sequence decoder