I've noticed some issues loading resources where source files might have had byte order markers at the start \uFEFF
Not sure how I got them there but I had to use a Notepad++ to strip them for resourceloader to work correctly, might be worth checking for such characters before emebding in resource script object.