Bug fix apostrophe

Strings written to database with apostrophe pre-empted string.

Fixed.