Fix broken string-based reader