protected byte[] getBytes(char[] text) {
try {
final ByteArrayOutputStream out = outputs.get();
encoders.get().write(text, 0, text.length, out);
final byte[] bytes = out.toArray();
out.reset();
return bytes;
} catch (IOException ex) {
throw new ScriptRuntimeException(ex);
}
}