pir - 2011-11-08

Same applies for the length of a string which should use mb_strlen.
But not everybody have the mbstring module.
Maybe testing with function_exists before to use.