Assert on escape sequences on redirection.

Closes #11.