fixed localrpc charset bugs
fixed emergency patch handling