For the unicode problem, see https://github.com/xattr/xattr/issues/13#issuecomment-22026384