follow gulp plugin guidelines

errors need to be reported and file.contents should always be a buffer.
Merge pull request #1 from Contra/patch-1

follow gulp plugin guidelines