Fix isBinary for safari