You have the wrong character prefixing XX:G1GC:
$ curl -sS -XGET https://gist.githubusercontent.com/golfdish/c051cbe9e1196a7acbbbe9559666a4dc/raw/f47d3109a144ee2f58f842b17e5842c77859fc63/jvm.options | grep --color=never UseG1GC | xxd
00000000: e280 9358 583a 2b55 7365 4731 4743 0a ...XX:+UseG1GC.
That indicates the character there has bytes 0xe28093 before the XX. It should be 0x2d for the - character, for example:
$ curl -sS -XGET https://gist.githubusercontent.com/golfdish/c051cbe9e1196a7acbbbe9559666a4dc/raw/f47d3109a144ee2f58f842b17e5842c77859fc63/jvm.options | grep --color=never Xss | xxd
00000000: 2d58 7373 316d 0a -Xss1m.