Restore accidentally removed String.getBytes() and mark as deprecated (discouraged).