How do I force TextEdit to not add .txt extension (Sierra)
Don't use the name in the title bar to change or set the file name. Use the file menu option save, or hold the option key and select save as.  This lets you chose your extension name. I encountered a similar problem using title bar to name the file.