mb_internal_encoding("UTF-8") is neccesary for mb functions to work.