move source encoding into beam-parent