Capitalized HTTP method
Changed  array keys to uppercase
Made charset configurable