- Add a escapeByte function.
- Avoid a call to strlen() in the escaping functions
- In the connection functions, avoid leaking a connection object in the
case lua_newudata() would fail (and longjmp out).

The last two changes were suggested (and a patch supplied)
by daurnimator, quae@daurnimator.com.