handle escaped/unescaped values