Little cleaning a mess with url encoding and post hint types