Fixing, testing and unexporting cleanSlashes.
Tests for util.