simulation of ShortByteString from bytestring-0.10.4 with bytestring-0.10.0.2 (ghc-7.6)