Fix GROOVY-6857

Fix parse(byte[], string) method to not be recursive and add test case