Change escape behavior in 'document' command