Remove unecessary allocation
Fix ByteString::as_slice
Merge pull request #21 from canndrew/fixes

Small fixes