$ 0 0 First character is likely an indicator of whether the UTF-8 file is with/without BOM (byte-order mark).You may need to handle file format accordingly.For example, a text file with single character F will have extra data if it contains BOM.//