Minor fix and option from https://github.com/guardian/frontend

We're using `grunt-hash` to build asset bundles for mobile on [theguardian.com](http://www.theguardian.com/uk?view=mobile). We had a minor glitch with writing binary files. Also made the hash length configurable to match our existing style.