core: accept binaries as well where strings are expected.