Perform SASLPrep on the username and Resourceprep on the resource

The username is not necessarily a nodepart, therefore SASLPrep is more
appropriate than Nodeprep which we had before.