Validate input in trash-remove

Fixes #21