Fixed quoting so it works with title strings that contain single quotes