Re-introduce a fix for binary files and versioning for Perforce.
Re-introduce a fix for binary files and versioning for Perforce.

The fix for bug #585 broke the binary file support. This change brings it
back.

This also fixes the Perforce server versioning check.

Patch by Eric Huss
Reviewed at http://reviews.review-board.org/r/1154/

reviewboard/rbtools,blair/pkg-rbtools,davidt/rbtools,halvorlu/rbtools,clach04/rbtools_0.4.1,reviewboard/rbtools,haosdent/rbtools,haosdent/rbtools,Khan/rbtools,clach04/rbtools,clach04/old_rbtools_0.3.2,beol/rbtools,reviewboard/rbtools,datjwu/rbtools,beol/rbtools,davidt/rbtools,beol/rbtools,davidt/rbtools,halvorlu/rbtools,datjwu/rbtools,bcelary/rbtools,1tush/rbtools,halvorlu/rbtools,haosdent/rbtools,datjwu/rbtools,Khan/rbtools