update encoding for note