Add UnicodeDecoding error checking in Message.replace(), fixes #4