Fix mod_offline to handle binary strings properly.