Update dependencies

Update docopt, encoding and hamcrest to fix build with rust master.