Use StandardCharsets.UTF_8 for converting String to bytes (#5372)

Use StandardCharsets.UTF_8 for converting String to bytes to avoid potential encoding error.
1 file changed