Please try to execute this queries before selection of data:
SET NAMES UTF8;
SET CHARACTER SET 'utf8';
SET SESSION collation_connection = 'utf8_general_ci';
It will set the fetched data encoding to UTF-8.
Also, did you store your data or your script source code with BOM? Try to remove it using some text editor, i.e. Notepad++