Re-implemented folded scalar parsing.