Using variable encoding in mb_ucfirst function