RFC 3348 flag support, various fixes

Fixed issue with quoting strings for LIST responses causing folders with
spaces in name not to properly come over.
Fixed BYE not being sent on panics