UTF-8 encode passwd only when set (fixes: #4)