remotefilelog: check against bytes type instead of buffer and coerce to bytes

Authored by durin42.

Description

remotefilelog: check against bytes type instead of buffer and coerce to bytes

Fixes Python 3 compat here.

Differential Revision: https://phab.mercurial-scm.org/D5606