Use PMA_String class to substr multi-bytes.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>