Там ошибка. Должно быть $charset = 'utf8';, а не $charset = 'utf-8';