Config.toml unmarshal failed while following Hugo quickstart guide

I am a newbie to Hugo and using the Quick start guide at to deploy a new site. However, I am stuck at Step 4 and can’t add new content. I get the following unmarshal fail message every time. I cannot start the Hugo server as well. I do not understand what bare keys cannot contain '\x00' means. Please provide some help.

Try creating a text file, editing it and copying the text from the quick start:

title: "My First Post"
date: 2019-03-26T08:47:11+01:00
draft: true

I don’t know why it says that, but it might be how your system is creating the text file. If you can create a file manually, it will reduce possible issues.