finalize parsing by correctly resolving the escapes