use a byte slice directly, instead of a bytes.Buffer (thanks to tip from Nigel Tao)