edited test to use utf-8 encoding for getBytes