Merge pull request #10407 from NARKOZ/encoding-constant

Use constant for encoding