Fixing mongodb binary repr

If value is not a basestring we got type Exception in converting to Binary. This commit solve the issue.

For more details please take a look at https://groups.google.com/forum/#!topic/web2py-developers/6MKjeIzYhxI