Fix some bugs, fixed slashed folder encoding