Exclude all characters above 0xFFFF

Pull request based on my issue #2