follow gulp plugin guidelines

errors need to be reported and file.contents should always be a buffer

https://github.com/wearefractal/gulp#plugin-guidelines