Fix blank display of annotation data as html on Linux

This fixes WS-139 "[Linux] Note text is not displayed".  The old
code worked fine on Windows, but displayed nothing on Linux.  The
new code works on both platforms.