Replace mb functions by standard string functions.

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