Fixed uninstalling and added Jonathan's  code for encoding.  He needs to update it with his latest code.