changed calls to getBytes to specify the length (for safety)