Minor encoder improvements
Client: properties, error handling, tests