Fix type fragment encoding