Fix error with non-ASCII layer names

Signed-off-by: Yauhen Kharuzhy <jekhor@gmail.com>
Merge pull request #41 from jekhor/master

Fix string conversion error with non-ASCII layer names