utf-8 should be written as UTF-8

UTF is not a word. It is abbreviation of UCS Transformation Format—8-bit. It should be written as capital letters.