Subtitle encode fixes. Fix #438