Avoid unsafe use of scanner.Bytes() in ref name RPC's
Closes #1473 (closed)
Fixes bugs introduced by !1041 (merged). In that MR, we refactored some RPC's to stop using the lines.Sender
abstraction. lines.Sender
explicitly guards against this bug, that's why it wasn't there before.
Edited by GitLab Release Tools Bot