fix and complete converting of escaped control characters