NXP-10793: do not escape an empty marker
NXP-10793: change escape method behaviour to accept empty strings (but check for empty ids in layouts)