Add escape sequence checks and such