[SP-414] -- backported change from 5.1 to 5.0, escaping the title and an...

...d itemId