Extract URI attr encoding function