Enhanced backslash handling