unicode: fix #142,#166 for -O0-O2, proper savepvn strlen