Optimize localUidComparesPhoneNumbers function

Using QLatin1String saves us a lot of time in converting the string as
UTF8, and it's a simple function, so inlining makes sense.