fixing get-class server handler and encoding