Added getBytes wrapper for _getBytes inner method to return immutable result.