[fix] encode username before checking availability