[XrdCl] Make sure to handle non-NULL-terminated error messages correctly