Adding a static HTTP encoding function.