Allow unicode strings also.

Signed-off-by: Martin Raspaud <martin.raspaud@smhi.se>