Bind <C-t> on the command line to swap two characters

Just like readline does