Remove `bytestring-class` dependency

The `bytestring-class` package won't build on recent versions of GHC without adding a build flag. Since our usage of it was minimal anyway, we'll just take the one small function we want and remove the dependency.

Addresses #1.