Move byte buffer String conversion logic to JavaUtils

I did not realize there was a `JavaUtils` when I wrote this code. This PR moves the `ByteBuffer` string conversion to the appropriate place.