added encoding patches to init. Recording isn't working correctly.
added encoding patches to init. Recording isn't working correctly.

AG6GR/reference,electricimp/reference,electricimp/reference,AG6GR/reference