Fix string conversion error with non-ASCII layer names

Signed-off-by: Yauhen Kharuzhy <jekhor@gmail.com>