Mutualize ensureByteCopy
Use Netty's backport of JDK8 CHM
Mutualize url extraction logic, use it for inline style too