sync encoding