Found the (a?) problem: must change \' back to ' (why does Mac do this?).