Fix parsing spaces at the beginning of document.

Reported by:	@mitchellh
Issue:	#31