Added check to see if mbstring PHP lib is installed before using it

Change-Id: Iea9b98335309af8ffbf38027fec353c3adde74fe