Avoid modifying $self argument.

This avoids surprising behavior when the object the method is being
invoked on changes.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>