If you use a file dialog with a data type specified (*.hdr) the .hrd ending will automatically be appended as long as the user only writes in a name. I do not believe you can prevent that, but you coan scan the path from the file dialog and replace the extension if it is not hdr (avoids double extensions).
