I don't think that UnicodeDecodeError could be raised here.  UnicodeEncodeError could, but you wouldn't want to catch that.  (I'm assuming the added decode/encode calls here are to validate that the string is ascii.)