Fix buffer copy to prevent response pollution -- fixes #23, closes #24