Improves retrieval of external files by forcing encoding and only using Nokogiri when it is needed.