Fix undefined variable in encoding
Merge branch 'master' of https://github.com/rtCamp/buddypress-media