Getting a client to run "jpeg"?

Lua cannot manage multibyte strings. It uses the UTF-8 charset, therefore binary data cannot be written to or read
from Lua. You can manage multibyte strings in a module, but you gotta write and read within the module.