Fixed the getBytes() function, now returns the proper bytes