Datepicker: Use entity number instead of entity name when escaping single quotes.