explicitly added UTF-8 encoding for getBytes() methods on string, which allows working with non-ASCII characters