Have you tried using the contains() function instead of comparing if they're equal? There might be extra characters in the People Picker value that's just not displaying. So your rule would be something like: if AccountID contains username(), then switch view.
If that still doesn't work, try using the SharePoint list UserProfileSevice web service, GetUserProfileByName method.