encode correctly the menu URI, fixes #1093