[GLib] Fixed function source retrieval not handling different line endings properly.