libceph: fix off-by-one bug in ceph_encode_filepath()