diff --git a/src/calibre/devices/kindle/driver.py b/src/calibre/devices/kindle/driver.py
index c739f9572b..1c84c42e90 100644
--- a/src/calibre/devices/kindle/driver.py
+++ b/src/calibre/devices/kindle/driver.py
@@ -214,13 +214,13 @@ class KINDLE(USBMS):
spanTag = Tag(ka_soup, 'span')
spanTag['style'] = 'font-weight:bold'
if bookmark.book_format == 'pdf':
- spanTag.insert(0,NavigableString(
+ spanTag.insert(0,BeautifulSoup(
_("%(time)s
Last page read: %(loc)d (%(pr)d%%)") % dict(
time=strftime(u'%x', timestamp.timetuple()),
loc=last_read_location,
pr=percent_read)))
else:
- spanTag.insert(0,NavigableString(
+ spanTag.insert(0,BeautifulSoup(
_("%(time)s
Last page read: Location %(loc)d (%(pr)d%%)") % dict(
time=strftime(u'%x', timestamp.timetuple()),
loc=last_read_location,
@@ -259,7 +259,7 @@ class KINDLE(USBMS):
typ=user_notes[location]['type']))
for annotation in annotations:
- divTag.insert(dtc, annotation)
+ divTag.insert(dtc, BeautifulSoup(annotation))
dtc += 1
ka_soup.insert(0,divTag)
diff --git a/src/calibre/devices/kobo/driver.py b/src/calibre/devices/kobo/driver.py
index 2c1f853181..629f1bd755 100644
--- a/src/calibre/devices/kobo/driver.py
+++ b/src/calibre/devices/kobo/driver.py
@@ -76,7 +76,7 @@ class KOBO(USBMS):
dbversion = 0
fwversion = (0,0,0)
- supported_dbversion = 146
+ supported_dbversion = 147
has_kepubs = False
supported_platforms = ['windows', 'osx', 'linux']
@@ -1201,13 +1201,13 @@ class KOBO(USBMS):
spanTag = Tag(ka_soup, 'span')
spanTag['style'] = 'font-weight:normal'
if bookmark.book_format == 'epub':
- spanTag.insert(0,NavigableString(
+ spanTag.insert(0,BeautifulSoup(
_("