avoid encoding errors