Added encoding of usernames so that "||" can be handled.