Allow unicode for str values
Handle case that we have zero layers