Fix support for uploading non-multipart profile banner and other media

As discussed earlier, this fixes #241.

I also included the base64 conversion check for 'banner' and the missing `encode('utf8')` for other media through multipart, since I encountered that as well. So I guess this also fixes #242, which I saw just a couple of minutes ago.