Added Python 3.2 support. Because Debian.

Also added more validation, including a warning if the replacement
string is longer than one character.