Tail-end charlie

I know what it means, but where did "tail-end charlie" come from?

From WW2 - the tail gunner in a bomber. Not sure whether it started in the RAF or USAAF (no USAF in those days!)