in _compat for py3k only encode if param is not bytes type in b()
Merge pull request #283 from salimane/upstream

in _compat for py3k only encode if param is not bytes type in b()