public static final Bytes toBytesFromPrintableAscii(String s) {
    byte[] result = new byte[s.length()];
    for (int i = 0; i < s.length(); ++i) {
      result[i] = toByteFromPrintableAscii(s.charAt(i));
    }
    return Bytes.copyFrom(result);
  }
Converts a string {@code s} to a corresponding {@link Bytes} object.

<p>The string must contain only printable ASCII characters; calling it in any other way is a
considered a bug in Tink. Spaces are not allowed.

@throws TinkBugException if s contains a character which is not a printable ASCII character or
    a space.
java_src/src/main/java/com/google/crypto/tink/internal/Util.java