Add URL decoding method and delete obsolete lines