Ignore spaces and accents in short refs and text refs when matching.