oops! fix encoding with menu objects