Return correct error code, escape arguments, and identified a bug with xmlrpc_enabled