diff --git a/src/calibre/ebooks/metadata/html.py b/src/calibre/ebooks/metadata/html.py
index c8f6c3ea16..9ef578c858 100644
--- a/src/calibre/ebooks/metadata/html.py
+++ b/src/calibre/ebooks/metadata/html.py
@@ -13,7 +13,7 @@ from calibre.ebooks.metadata import MetaInformation
from calibre.ebooks.chardet import xml_to_unicode
def get_metadata(stream):
- src = xml_to_unicode(stream.read())
+ src = xml_to_unicode(stream.read())[0]
# Title
title = None