Fixes bug 848458 - Fixed issues with invalid email addresses and unicode characters.