escape work package data for auto-completion #4858

what the subject says... plus: https://www.openproject.org/work_packages/4858