More targeted string replace when 'patching' user agent for entity framework