As per my testing with Network Server of thingpark, I noticed the nwkKey and appKey must be formatted as follows for the join request to be accepted.
I am not sure if this is the case for other network servers too. But I believe it should be because of LoRaWAN standard.