Use String.replaceFirst() to substitute %s with username
URLEncode the username