Add enc/dec for win32