An mbstring like implementation in PHP.