modified form handling to replace apostrophe characters