add url encoding for username