diff --git a/plugins/FeedsFetcher.inc b/plugins/FeedsFetcher.inc
index 9cafd20..38cfac2 100644
--- a/plugins/FeedsFetcher.inc
+++ b/plugins/FeedsFetcher.inc
@@ -67,7 +67,7 @@ class FeedsFetcherResult extends FeedsResult {
    *   The sanitized content as a string.
    */
   public function sanitizeRaw($raw) {
-    if (substr($raw, 0, 3) == pack('CCC', 0xef, 0xbb, 0xbf)) {
+    if (is_string($raw) && substr($raw, 0, 3) == pack('CCC', 0xef, 0xbb, 0xbf)) {
       $raw = substr($raw, 3);
     }
     return $raw;
