Fixed #4987: use easier way to retrieve file content and pass to `parse` function