rewrite CSS paths without using URI class