Google

def bytes encoding = document.encoding to_s end