5.2-style token quoting in errors

Signed-off-by: katlogic <kat@lua.cz>