[java] How to convert byte array to string and vice versa?