Fix handling of unicode source (reported by Morten Nielsen)