Would be better to add a second parse method that takes a Reader (so here a StringReader) instead of having this byte copy/decoding.