Fix bugs (crash in wrap mode, sanitizing dirs) and update changelog for release