[ORB-224] properly encode notes