Fixed Piping to HEAD adds newlines

Similar threads