diff --git a/src/libprs500/ebooks/lrf/html/convert_from.py b/src/libprs500/ebooks/lrf/html/convert_from.py
index e1908737d8..f746ad5ba4 100644
--- a/src/libprs500/ebooks/lrf/html/convert_from.py
+++ b/src/libprs500/ebooks/lrf/html/convert_from.py
@@ -349,7 +349,9 @@ class HTMLConverter(object):
upath = path.encode('utf-8') if isinstance(path, unicode) else path
if not os.path.exists(upath):
upath = upath.replace('&', '%26') #convertlit replaces & with %26 in file names
- raw = UnicodeDammit(open(upath, 'rb').read()).unicode
+ f = open(upath, 'rb')
+ raw = UnicodeDammit(f.read()).unicode
+ f.close()
soup = self.preprocess(raw)
self.logger.info('\tConverting to BBeB...')
self.current_page = None