Nice pull request!  My only real comment is that I'm not a big fan of implicit returns.  Care to change the signature of this function to return just `[]byte`, manually initializing the byte array and explicitly returning it?