Escape commit messages to properly handle special characters