diff --git a/gramps2/src/PluginUtils/_Options.py b/gramps2/src/PluginUtils/_Options.py
index f5deaf10b..674707fd2 100644
--- a/gramps2/src/PluginUtils/_Options.py
+++ b/gramps2/src/PluginUtils/_Options.py
@@ -206,12 +206,12 @@ class OptionListCollection:
for list_index in range(len(options[option_name])):
f.write(' \n' % (
list_index,
- escape(options[option_name][list_index])) )
+ escape(str(options[option_name][list_index]))) )
f.write(' \n')
else:
f.write(' \n' % (
escape(option_name),
- escape(options[option_name])) )
+ escape(str(options[option_name]))) )
self.write_module_common(f,option_list)