Add somewhat more robust handling of input email address (not just bare)

Merged shared code address sanitizing code from setFrom() and addAnAddress()