Do not modify argument to setContents()
Merge pull request #243 from voxmedia/set-contents-with-copy

Do not modify argument to setContents()