make unescape more robust (bnc#834782)