WireClient: throw exception when trying to PUT/DELETE directories. (fixes #346)