Made the echo function accept bytes transparently on 3.x