Bugfix for WriteRequestTarget (fixes also Client::write())