Fix getSafeUrlIdentifier