To be picky, str_to_unicode expects a native string, so the 'username' fallback value shouldn't have a `u` prefix.