Who wrote the original tale of goldilocks and the three bears?

Who wrote the original tale of goldilocks and the three bears?