Fix: make resolve_double_slashes local