convert bytearrayinputstream to string