fix undefined index + utf-8 month.php