Like celador says, it's how it would be pronounced.
Ma-rio. Da-rí-o
For example you have María (Ma-rí-a) and not Ma-ria
Legally, I'm not sure. I suppose the unaccented version is valid (they are not considered to be separate letters), but usually you must know how to write your own name
I will ask...