implement bracketed paste mode (fixes #56)