Fixed off-by-one escapes codes